﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CopyMsgToTxt.ParseModel
{
    public class Message
    {
        public string Sender { get; set; }
        public DateTime Timestamp { get; set; }
        public string Content { get; set; }
        public bool IsQuoted { get; set; } 
    }

    public interface IMessageContent
    {
        string GetContent();
    }


    /// <summary>
    /// 普通文本
    /// </summary>
    public class PlainMessage : IMessageContent
    {
        public string Text { get; set; }

        public string GetContent()
        {
            return Text;
        }
    }

    /// <summary>
    /// 引用文本
    /// </summary>
    public class QuotedMessage : IMessageContent
    {
        public string QuotedText { get; set; }
        public string ReplyText { get; set; }

        public string GetContent()
        {
            return $"Quoted: {QuotedText} | Reply: {ReplyText}";
        }
    }



}
